function GetPath(useDialog : boolean; var path: Str255) : boolean;

Gets the default path.  If useDialog is TRUE, a GetFolder dialog is displayed and the selected path is returned in path.  If unsuccessful or the user clicked Cancel then this function returns FALSE;

Also see:  SetPath